home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat3 / Tk / setgrid.z / setgrid
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk))))                                                TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_SetGrid, Tk_UnsetGrid - control the grid for interactive resizing
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  13.  
  14.      TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd(_t_k_w_i_n, _r_e_q_W_i_d_t_h, _r_e_q_H_e_i_g_h_t, _w_i_d_t_h_I_n_c, _h_e_i_g_h_t_I_n_c)
  15.  
  16.      TTTTkkkk____UUUUnnnnsssseeeettttGGGGrrrriiiidddd(_t_k_w_i_n)                                                      |
  17.  
  18. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  19.      Tk_Window   _t_k_w_i_n       (in)      Token for window.
  20.  
  21.      int         _r_e_q_W_i_d_t_h    (in)      Width in grid units that corresponds to
  22.                                        the pixel dimension _t_k_w_i_n has requested
  23.                                        via TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt.
  24.  
  25.      int         _r_e_q_H_e_i_g_h_t   (in)      Height in grid units that corresponds
  26.                                        to the pixel dimension _t_k_w_i_n has
  27.                                        requested via TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt.
  28.  
  29.      int         _w_i_d_t_h_I_n_c    (in)      Width of one grid unit, in pixels.
  30.  
  31.      int         _h_e_i_g_h_t_I_n_c   (in)      Height of one grid unit, in pixels.
  32.  
  33.  
  34. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  35.      TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd turns on gridded geometry management for _t_k_w_i_n's toplevel
  36.      window and specifies the geometry of the grid.  TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd is typically
  37.      invoked by a widget when its sssseeeettttGGGGrrrriiiidddd option is true.  It restricts
  38.      interactive resizing of _t_k_w_i_n's toplevel window so that the space
  39.      allocated to the toplevel is equal to its requested size plus or minus
  40.      even multiples of _w_i_d_t_h_I_n_c and _h_e_i_g_h_t_I_n_c.  Furthermore, the _r_e_q_W_i_d_t_h and
  41.      _r_e_q_H_e_i_g_h_t values are passed to the window manager so that it can report
  42.      the window's size in grid units during interactive resizes.  If _t_k_w_i_n's  |
  43.      configuration changes (e.g., the size of a grid unit changes) then the   |
  44.      widget should invoke TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd again with the new information.          |
  45.  
  46.      TTTTkkkk____UUUUnnnnsssseeeettttGGGGrrrriiiidddd cancels gridded geometry management for _t_k_w_i_n's toplevel    |
  47.      window.                                                                  |
  48.  
  49.      For each toplevel window there can be at most one internal window with   |
  50.      gridding enabled.  If TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd or TTTTkkkk____UUUUnnnnsssseeeettttGGGGrrrriiiidddd is invoked when some    |
  51.      other window is already controlling gridding for _t_k_w_i_n's toplevel, the   |
  52.      calls for the new window have no effect.
  53.  
  54.      See the wwwwmmmm manual entry for additional information on gridded geometry
  55.      management.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk))))                                                TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  75.      grid, window, window manager
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.